<?php

return array (
  'use_admin_id' => true,
  'admin_permissions' => 
  array (
    1 => 
    array (
      'name' => '超级管理员',
      'description' => '拥有所有模块的完整权限',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'model_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'process_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'price_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
          4 => 'batch',
        ),
        'order_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
          4 => 'batch',
        ),
        'report_manage' => 
        array (
          0 => 'view',
          1 => 'audit',
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
          1 => 'audit',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'user_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
          4 => 'password',
        ),
      ),
    ),
    2 => 
    array (
      'name' => '订单产品管理员',
      'description' => '只能管理产品、订单、型号',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'model_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'process_manage' => 
        array (
          0 => 'view',
        ),
        'price_manage' => 
        array (
          0 => 'view',
        ),
        'order_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
        ),
        'report_manage' => 
        array (
          0 => 'view',
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
        ),
        'user_manage' => 
        array (
          0 => 'view',
          1 => 'edit',
          2 => 'password',
        ),
      ),
    ),
    3 => 
    array (
      'name' => '报工管理员',
      'description' => '只能管理报工、主动报工、审核、分工',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'view',
        ),
        'model_manage' => 
        array (
          0 => 'view',
        ),
        'process_manage' => 
        array (
          0 => 'view',
        ),
        'price_manage' => 
        array (
          0 => 'view',
        ),
        'order_manage' => 
        array (
          0 => 'view',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
          4 => 'batch',
        ),
        'report_manage' => 
        array (
          0 => 'view',
          1 => 'audit',
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
          1 => 'audit',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
        ),
        'user_manage' => 
        array (
          0 => 'view',
        ),
      ),
    ),
    12 => 
    array (
      'name' => '管理员12',
      'description' => '自定义权限配置',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'add',
          1 => 'edit',
          2 => 'delete',
          3 => 'view',
        ),
        'model_manage' => 
        array (
          0 => 'add',
          1 => 'edit',
          2 => 'view',
        ),
        'process_manage' => 
        array (
          0 => 'add',
          1 => 'edit',
          2 => 'batch',
          3 => 'view',
        ),
        'price_manage' => 
        array (
          0 => 'view',
        ),
        'order_manage' => 
        array (
          0 => 'view',
        ),
        'allocation_manage' => 
        array (
          0 => 'add',
          1 => 'edit',
          2 => 'delete',
          3 => 'view',
        ),
        'report_manage' => 
        array (
          0 => 'view',
        ),
        'active_report_manage' => 
        array (
        ),
        'admin_manage' => 
        array (
        ),
      ),
    ),
    14 => 
    array (
      'name' => '管理员14',
      'description' => '自定义权限配置',
      'permissions' => 
      array (
        'order_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'audit',
          4 => 'batch',
          5 => 'edit',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
        ),
        'report_manage' => 
        array (
          0 => 'view',
        ),
        'production_plan_manage' => 
        array (
          0 => 'view',
        ),
        'product_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'edit',
          4 => 'audit',
          5 => 'batch',
        ),
        'model_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'edit',
          4 => 'batch',
          5 => 'audit',
        ),
        'process_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'edit',
          4 => 'batch',
          5 => 'audit',
        ),
        'price_manage' => 
        array (
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
        ),
      ),
    ),
    16 => 
    array (
      'name' => '管理员16',
      'description' => '自定义权限配置',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
          4 => 'batch',
          5 => 'audit',
        ),
        'model_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'edit',
        ),
        'process_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'batch',
          4 => 'delete',
        ),
        'price_manage' => 
        array (
        ),
        'order_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'batch',
          4 => 'delete',
          5 => 'audit',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'audit',
          4 => 'batch',
          5 => 'delete',
        ),
        'report_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'audit',
          4 => 'batch',
          5 => 'delete',
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'batch',
          4 => 'edit',
          5 => 'audit',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
        ),
      ),
    ),
    17 => 
    array (
      'name' => '管理员17',
      'description' => '自定义权限配置',
      'permissions' => 
      array (
        'product_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'delete',
          3 => 'edit',
          4 => 'audit',
          5 => 'batch',
        ),
        'model_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'process_manage' => 
        array (
          0 => 'view',
          1 => 'add',
          2 => 'edit',
          3 => 'delete',
        ),
        'order_manage' => 
        array (
          0 => 'view',
          1 => 'delete',
          2 => 'edit',
          3 => 'add',
        ),
        'allocation_manage' => 
        array (
          0 => 'view',
        ),
        'report_manage' => 
        array (
          0 => 'view',
        ),
        'active_report_manage' => 
        array (
          0 => 'view',
        ),
        'admin_manage' => 
        array (
          0 => 'view',
        ),
        'price_manage' => 
        array (
        ),
      ),
    ),
  ),
  'api_permissions' => 
  array (
    'getProductList' => 
    array (
      'module' => 'product_manage',
      'action' => 'view',
    ),
    'createProduct' => 
    array (
      'module' => 'product_manage',
      'action' => 'add',
    ),
    'updateProduct' => 
    array (
      'module' => 'product_manage',
      'action' => 'edit',
    ),
    'deleteProduct' => 
    array (
      'module' => 'product_manage',
      'action' => 'delete',
    ),
    'getProductModelList' => 
    array (
      'module' => 'model_manage',
      'action' => 'view',
    ),
    'createProductModel' => 
    array (
      'module' => 'model_manage',
      'action' => 'add',
    ),
    'updateProductModel' => 
    array (
      'module' => 'model_manage',
      'action' => 'edit',
    ),
    'deleteProductModel' => 
    array (
      'module' => 'model_manage',
      'action' => 'delete',
    ),
    'getProcessList' => 
    array (
      'module' => 'process_manage',
      'action' => 'view',
    ),
    'createProcess' => 
    array (
      'module' => 'process_manage',
      'action' => 'add',
    ),
    'updateProcess' => 
    array (
      'module' => 'process_manage',
      'action' => 'edit',
    ),
    'deleteProcess' => 
    array (
      'module' => 'process_manage',
      'action' => 'delete',
    ),
    'getProcessPriceList' => 
    array (
      'module' => 'price_manage',
      'action' => 'view',
    ),
    'createProcessPrice' => 
    array (
      'module' => 'price_manage',
      'action' => 'add',
    ),
    'updateProcessPrice' => 
    array (
      'module' => 'price_manage',
      'action' => 'edit',
    ),
    'deleteProcessPrice' => 
    array (
      'module' => 'price_manage',
      'action' => 'delete',
    ),
    'batchProcessPrice' => 
    array (
      'module' => 'price_manage',
      'action' => 'batch',
    ),
    'getOrderList' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'getOrders' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'createOrder' => 
    array (
      'module' => 'order_manage',
      'action' => 'add',
    ),
    'updateOrder' => 
    array (
      'module' => 'order_manage',
      'action' => 'edit',
    ),
    'deleteOrder' => 
    array (
      'module' => 'order_manage',
      'action' => 'delete',
    ),
    'getOrderProgressList' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'getProcessProgressStats' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'getOrderProgressDetail' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'getProgressFilterOptions' => 
    array (
      'module' => 'order_manage',
      'action' => 'view',
    ),
    'getAllocationList' => 
    array (
      'module' => 'allocation_manage',
      'action' => 'view',
    ),
    'createAllocation' => 
    array (
      'module' => 'allocation_manage',
      'action' => 'add',
    ),
    'updateAllocation' => 
    array (
      'module' => 'allocation_manage',
      'action' => 'edit',
    ),
    'deleteAllocation' => 
    array (
      'module' => 'allocation_manage',
      'action' => 'delete',
    ),
    'batchCreateAllocation' => 
    array (
      'module' => 'allocation_manage',
      'action' => 'batch',
    ),
    'getReportList' => 
    array (
      'module' => 'report_manage',
      'action' => 'view',
    ),
    'auditReport' => 
    array (
      'module' => 'report_manage',
      'action' => 'audit',
    ),
    'getActiveReportList' => 
    array (
      'module' => 'active_report_manage',
      'action' => 'view',
    ),
    'auditActiveReport' => 
    array (
      'module' => 'active_report_manage',
      'action' => 'audit',
    ),
    'getAdminList' => 
    array (
      'module' => 'admin_manage',
      'action' => 'view',
    ),
    'createAdmin' => 
    array (
      'module' => 'admin_manage',
      'action' => 'add',
    ),
    'updateAdmin' => 
    array (
      'module' => 'admin_manage',
      'action' => 'edit',
    ),
    'deleteAdmin' => 
    array (
      'module' => 'admin_manage',
      'action' => 'delete',
    ),
    'getAdminDetail' => 
    array (
      'module' => 'admin_manage',
      'action' => 'view',
    ),
    'getUserList' => 
    array (
      'module' => 'user_manage',
      'action' => 'view',
    ),
    'getUsers' => 
    array (
      'module' => 'user_manage',
      'action' => 'view',
    ),
    'updateUser' => 
    array (
      'module' => 'user_manage',
      'action' => 'edit',
    ),
    'deleteUser' => 
    array (
      'module' => 'user_manage',
      'action' => 'delete',
    ),
    'changeUserPassword' => 
    array (
      'module' => 'user_manage',
      'action' => 'password',
    ),
    'getAvailableUsers' => 
    array (
      'module' => 'user_manage',
      'action' => 'view',
    ),
    'addProcessUsers' => 
    array (
      'module' => 'user_manage',
      'action' => 'add',
    ),
    'removeProcessUser' => 
    array (
      'module' => 'user_manage',
      'action' => 'delete',
    ),
    'getProcessUsers' => 
    array (
      'module' => 'user_manage',
      'action' => 'view',
    ),
  ),
  'default_permissions' => 
  array (
    'product_manage' => 
    array (
      0 => 'view',
    ),
    'model_manage' => 
    array (
      0 => 'view',
    ),
    'process_manage' => 
    array (
      0 => 'view',
    ),
    'price_manage' => 
    array (
      0 => 'view',
    ),
    'order_manage' => 
    array (
      0 => 'view',
    ),
    'allocation_manage' => 
    array (
      0 => 'view',
    ),
    'report_manage' => 
    array (
      0 => 'view',
    ),
    'active_report_manage' => 
    array (
      0 => 'view',
    ),
    'admin_manage' => 
    array (
      0 => 'view',
    ),
    'user_manage' => 
    array (
      0 => 'view',
    ),
  ),
  'permission_check' => 
  array (
    'enable' => true,
    'log_permission_denied' => true,
    'default_admin_id' => 5,
    'super_admin_id' => 1,
  ),
);
